from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from polls import urls
from DjangoProjectVS.views import index
from DjangoProjectVS import views
from contract import urls as curls
from features import urls as furls

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'DjangoProjectVS.views.home', name='home'),
    # url(r'^DjangoProjectVS/', include('DjangoProjectVS.DjangoProjectVS.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),

    url(r'^$',index),
    url(r'^articles/$',views.year_archive),    
    url(r'^articles/(?P<year>\d{4})/$',views.year_archive),    
    url(r'^articles/(?P<year>\d{4})/(?P<month>\d{2})/$',views.month_archive),
    url(r'^articles/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$',views.day_archive),

    #url(r'^polls/', include('polls.urls')),
    url(r'^polls/', include(urls.urlpatterns)),  # the two format all can work

    url(r'^contact/', include(curls.urlpatterns)), 

    url(r'^features/', include(furls.urlpatterns)), 
)